﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _1_3 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void change_Click(object sender, EventArgs e)
    {
        switch (int.Parse( TextBox1.Text) / 10)
        {
            case 9: TextBox2.Text = "优秀"; break;
            case 8: TextBox2.Text = "良好"; break;
            case 7: TextBox2.Text = "普通"; break;
            case 6: TextBox2.Text = "危"; break;
            default: TextBox2.Text = "不及格"; break;
        }
    }
}